package lab02.test36;

public abstract class Student {
    String name;
    String calss;
    double math;
    double english;
    double computer;

    public Student(){}

    public Student(String name,String calss,
                   double math,double english,
                   double computer){
        this.name = name;
        this.calss = calss;
        this.math = math;
        this.english = english;
        this.computer =computer;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCalss() {
        return calss;
    }

    public void setCalss(String calss) {
        this.calss = calss;
    }

    public double getMath() {
        return math;
    }

    public void setMath(double math) {
        this.math = math;
    }

    public double getEnglish() {
        return english;
    }

    public void setEnglish(double english) {
        this.english = english;
    }

    public double getComputer() {
        return computer;
    }

    public void setComputer(double computer) {
        this.computer = computer;
    }

    public double average(double math,double english,
                          double computer){
        return (math+english+computer)/3;
    }

    public abstract void Undergraduate();

    public abstract void Postgraduate();
}
